package com.woniu.microworkorderserver.businessmag.mapper;

import com.woniu.microcommonsserver.entity.InspectPointInfoEntity;
import com.woniu.microcommonsserver.entity.PollingTemplateInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InspectPointMapper {

    /**
     * 新增巡检点数据
     * */
    long save(@Param("p") InspectPointInfoEntity entity);

    /**
     * 根据巡检计划id查询数据
     * */
    List<InspectPointInfoEntity> findByPlanId(@Param("inspectPlanId") long inspectPlanId);

    /**
     * 根据巡检计划id删除数据
     * */
    void delete(@Param("inspectPlanId") long inspectPlanId);
}
